package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.dto.AddInventoryDTO;
import com.project.entity.AcceptanceItems;
import com.project.dto.UpdateAcceptanceItemDTO;
import com.project.entity.Inventory;
import com.project.vo.AcceptanceItemDetailVO;
import com.project.vo.AcceptanceStatisticsVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AcceptanceItemMapper extends BaseMapper<AcceptanceItems> {
    AcceptanceItemDetailVO getByIds(Long id);

    void updated(@Param("id") Long id, @Param("updateAcceptanceItemDTO") UpdateAcceptanceItemDTO updateAcceptanceItemDTO);

    AcceptanceStatisticsVO getStatistics(Long acceptanceId);

    List<AddInventoryDTO> getall(Integer acceptanceId);

}